package com.pan.test;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableAsync //开启异步
@SpringBootApplication(scanBasePackages = "com.pan.test")
@EnableTransactionManagement
@MapperScan(basePackages = {"com.pan.test.mappers"})
@EnableScheduling //开启定时任务
public class PanApplication {
    public static void main(String[] args){
        SpringApplication.run(PanApplication.class, args);
    }

}
